package com.quick.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.quick.system.mapper.DutyLeaveMapper;
import com.quick.system.domain.DutyLeave;
import com.quick.system.service.IDutyLeaveService;

/**
 * 值班请假Service业务层处理
 * 
 * @author quick
 * @date 2025-01-03
 */
@Service
public class DutyLeaveServiceImpl implements IDutyLeaveService 
{
    @Autowired
    private DutyLeaveMapper dutyLeaveMapper;

    /**
     * 查询值班请假
     * 
     * @param id 值班请假主键
     * @return 值班请假
     */
    @Override
    public DutyLeave selectDutyLeaveById(Long id)
    {
        return dutyLeaveMapper.selectDutyLeaveById(id);
    }

    /**
     * 查询值班请假列表
     * 
     * @param dutyLeave 值班请假
     * @return 值班请假
     */
    @Override
    public List<DutyLeave> selectDutyLeaveList(DutyLeave dutyLeave)
    {
        return dutyLeaveMapper.selectDutyLeaveList(dutyLeave);
    }

    /**
     * 新增值班请假
     * 
     * @param dutyLeave 值班请假
     * @return 结果
     */
    @Override
    public int insertDutyLeave(DutyLeave dutyLeave)
    {
        return dutyLeaveMapper.insertDutyLeave(dutyLeave);
    }

    /**
     * 修改值班请假
     * 
     * @param dutyLeave 值班请假
     * @return 结果
     */
    @Override
    public int updateDutyLeave(DutyLeave dutyLeave)
    {
        return dutyLeaveMapper.updateDutyLeave(dutyLeave);
    }

    /**
     * 批量删除值班请假
     * 
     * @param ids 需要删除的值班请假主键
     * @return 结果
     */
    @Override
    public int deleteDutyLeaveByIds(Long[] ids)
    {
        return dutyLeaveMapper.deleteDutyLeaveByIds(ids);
    }

    /**
     * 删除值班请假信息
     * 
     * @param id 值班请假主键
     * @return 结果
     */
    @Override
    public int deleteDutyLeaveById(Long id)
    {
        return dutyLeaveMapper.deleteDutyLeaveById(id);
    }
}
